
using Core.SimpleTemp.Common;
using Core.SimpleTemp.Entitys;
using Core.Toolkit.Core.Application;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Core.SimpleTemp.Application
{
    [CreateMap(typeof(FX_OperationAndWork))]
    public class FX_OperationAndWorkDto : Dto
    {
        /// <summary>
        /// 风险类别ID
        /// </summary>
        public Guid? FXTypeID { get; set; }
        /// <summary>
        /// 作业步骤
        /// </summary>
        public String JobSteps { get; set; }
        /// <summary>
        /// 作业任务
        /// </summary>
        public String JobTask { get; set; }
        /// <summary>
        /// 风险级别ID
        /// </summary>
        public Guid? RiskLevel { get; set; }
        /// <summary>
        /// 风险级别Text
        /// </summary>
        [KeyToValue("9010", "RiskLevel")]
        public string RiskLevelText { get; set; }
        /// <summary>
        /// 风险
        /// </summary>
        public String Risk { get; set; }
        /// <summary>
        /// 危害因素
        /// </summary>
        public String HazardousFactor { get; set; }
        /// <summary>
        /// 现场作业行为和活动应遵守的要求
        /// </summary>
        public String RequirementsComply { get; set; }
        /// <summary>
        /// 控制要求
        /// </summary>
        public String ControlRequirement { get; set; }
        /// <summary>
        /// 是否参与风险分布
        /// </summary>
        public String IsRiskDistribute { get; set; }
        /// <summary>
        /// 隶属工厂
        /// </summary>
        public Guid? CreateFactory { get; set; }
        /// <summary>
        /// 添加部门
        /// </summary>
        public Guid? CreateDept { get; set; }
        /// <summary>
        /// 更改部门
        /// </summary>
        public Guid? UpdateDept { get; set; }


        public String Mark01 { get; set; }
        public String Mark02 { get; set; }
        public String Mark03 { get; set; }


        #region 补充字段

        /// <summary>
        /// 区域ID
        /// </summary>
        public Guid? AreaID { get; set; }
        /// <summary>
        /// 作业活动
        /// </summary>
        public String Jobactivity { get; set; }
        /// <summary>
        /// 管理措施
        /// </summary>
        public String ManageMeasure { get; set; }


        /// <summary>
        /// 排序
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Sort { get; set; }


        #endregion


        #region 关联

        public SysArea SysArea { get; set; }

        #endregion

        public List<Guid> AreaIds { get; set; }

    }
}
